/*
 * @Author: error: error: git config user.name & please set dead value or install git && error: git config user.email & please set dead value or install git & please set dead value or install git
 * @Date: 2023-06-05 09:38:28
 * @LastEditors: jiangjinchi 1468922694@qq.com
 * @LastEditTime: 2023-11-08 11:27:37
 * @FilePath: \vue-admin-template\src\api\base.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from '@/utils/request'
export function baseRequest(url,data,page,method) {
    return request({
        url: url,
        method,
        data,
        headers: page
    })
}

export function baseRequestGet(url,page,method = 'get') {
    return request({
        url: url,
        method,
        headers: page
    })
}

export function baseRequestGetParams(url,data,page,method = 'get') {
    return request({
        url: url,
        params:data,
        method,
        headers: page
    })
}
